import request from '@/utils/request'

// 新增工牌
export function cardAdd(data = {}) {
  return request({
    url: '/workbench/attend-device/create',
    method: 'post',
    data: data
  })
}
// 工牌删除
export function cardDel(data = {}) {
  return request({
    url: '/workbench/attend-device/remove',
    method: 'get',
    params: data
  })
}
// 修改工牌
export function cardEdit(data = {}) {
  return request({
    url: '/workbench/attend-device/update',
    method: 'post',
    data: data
  })
}
// 工牌详情
export function cardDtl(data = {}) {
  return request({
    url: '/workbench/attend-device/detail',
    method: 'get',
    params: data
  })
}
// 工牌列表
export function cardList(data = {}) {
  return request({
    url: '/workbench/attend-device/list',
    method: 'get',
    params: data
  })
}
